package cn.ztuo.bitrade.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 系统角色
 *
 * @author fiwork.net
 * @date 2019年12月18日
 */
@Entity
@Data
@Table(name = "sys_site")
public class SysSite {

    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Id
    @NotNull(message = "id不能为空")
    @ApiModelProperty(value="id",required = true)
    private Long id;

    /**
     * 站点名称
     */
    @NotBlank(message = "站点名称")
    @ApiModelProperty(value="站点名称",required = true)
    private String name;
    /**
     * 站点副标题
     */
    @ApiModelProperty(value="站点副标题",required = false)
    private String title;
    /**
     * 站点副标题
     */
    @ApiModelProperty(value="站点描述",required = false)
    private String description;
    /**
     * 关键词
     */
    @ApiModelProperty(value="关键词",required = false)
    private String keyWord;
    /**
     * logo地址
     */
    @NotBlank(message = "logo地址不能为空")
    @ApiModelProperty(value="logo地址",required = true)
    private String logoUrl;
    /**
     * 邮箱
     */
    @NotBlank(message = "邮箱不能为空")
    @ApiModelProperty(value="邮箱",required = true)
    private String mail;
    /**
     * 二维码地址
     */
    @NotBlank(message = "二维码地址不能为空")
    @ApiModelProperty(value="二维码地址",required = true)
    private String qrCoreUrl;
    /**
     * telegram_url
     */
    @ApiModelProperty(value="telegram_url",required = false)
    private String telegram;
    /**
     * linkedin_url
     */
    @ApiModelProperty(value="linkedin_url",required = false)
    private String linkedin;
    /**
     * twitter
     */
    @ApiModelProperty(value="twitter_url",required = false)
    private String twitter;
    /**
     * facebook
     */
    @ApiModelProperty(value="facebook_url",required = false)
    private String facebook;

    @ApiModelProperty(value="短信前缀",required = true)
    private String phoneCorePrefix;

    @ApiModelProperty(value="邮件前缀",required = true)
    private String mailCorePrefix;

    @ApiModelProperty(value="移动端logo地址",required = true)
    private String appLogoUrl;
    @ApiModelProperty(value="安卓下载二维码",required = false)
    private String androidQrCore;
    @ApiModelProperty(value="ios下载二维码",required = false)
    private String iosQrCore;
    @ApiModelProperty(value="地址栏图标",required = false)
    private String siteIco;
    @ApiModelProperty(value="行情资讯url",required = false)
    private String infoUrl ;

    @ApiModelProperty(value="客服电话",required = false)
    private String phone ;
}
